package features.advance.template.func;

/**
 * @author Administrator
 * @date 2022-01-22 下午 5:15
 */
public class Demo {

    public void functional(){
        boolean condtion = true;
        if (condtion){
            throw new RuntimeException("出现异常了");
        }

        if (condtion){
            doSomething();
        } else {
            doOther();
        }
    }

    private void doOther() {

    }

    private void doSomething() {
    }
}
